FUNCTION DAC_2WordsToDword :DWORD
TITLE = 'DAC_2WordsToDword'
//
// This functionblock build a dword of 2 single words
// 
// Versionshistory:
// 1.0 Ersterstellung E.Dittmann

VERSION : '1.0'
AUTHOR  : 'Lenze'
FAMILY  : 'DAC'
NAME : 'dwOf2w'
KNOW_HOW_PROTECT


VAR_INPUT
    wInput1:                    WORD;                              // Inputword 1
    wInput2:                    WORD;                              // Inputword 2
END_VAR

VAR
END_VAR

BEGIN
    DAC_2WordsToDword := SHL(IN:=WORD_TO_DWORD(wInput2),N:=16) OR WORD_TO_DWORD(wInput1);
END_FUNCTION

